<div id="foo"></div>

<script type="module">
  import { foo } from '../foo.js'

  document.querySelector('#foo').textContent = foo
</script>
